package com.wang.myblog.mapper;

import com.wang.myblog.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface AdminMapper {

    Admin queryById(Integer id);

    Admin queryByNameAndPwd(@Param("name")String name,@Param("password") String pwd);

    int update(Admin admin);

}
